package com.example.order.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface OrderApi {

    @GetMapping(value = "/createOrder")
    public Boolean create(@RequestParam(value = "userId") String userId,
                          @RequestParam(value = "commodityCode") String commodityCode,
                          @RequestParam(value = "orderCount") int orderCount);

    @GetMapping(value = "/testDisTransaction")
    public Boolean testDisTransaction(@RequestParam(value = "userId") String userId,
                                      @RequestParam(value = "commodityCode") String commodityCode,
                                      @RequestParam(value = "orderCount") int orderCount);
}
